import { GET, POST, DELETE } from '@/utils/request'

/**
 * 获取scheme列表
 * @param {Number} pageNum
 * @param {Number} pageSize
 *
 */
export const getSchemes = (params) => GET('/node/application/schemes', params)

/**
 * 创建一个scheme
 * @param {String} scheme 值
 * @param {String} desc 描述
 *
 */
export const createScheme = (data) => POST('/node/application/scheme', data)
/**
 * 删除一个scheme
 * @param {Number} id
 *
 */
export const removeScheme = (id) => DELETE(`/node/application/scheme?id=${ id }`)
